package bean;

import java.io.Serializable;

/**
 * Created by ilioili on 2015/3/18.
 */
public class TabArticleItem implements Serializable {
    private String id;
    private String img;
    private String media;
    private String summary;
    private long time;
    private String title;
    private int type;
    private String tid;
    private TabTopicItem topic;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getMedia() {
        return media;
    }

    public void setMedia(String media) {
        this.media = media;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time * 1000;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public TabTopicItem getTopic() {
        return topic;
    }

    public void setTopic(TabTopicItem topic) {
        this.topic = topic;
    }

    public boolean ableWa() {
        return !(this.tid == null || this.tid.isEmpty());
    }
}
